export default {
	state: {
		keepVideoList:[],
		pageobj:{},
	},

	mutations: { //同步 也就是必须操作完成再进行下一步
		//commit的作用，就是调用store中某个mutation的函数。
		//修改操作state的数据，要通过mutations
		//更新video剧的信息
		// setranking(state, arr) {
		// 		state.rankingarr = arr;
		// },
		setpage(state,obj){
			state.pageobj.last_page = obj.last_page
			state.pageobj.current_page = obj.current_page
			state.pageobj.ranking = obj.ranking
			state.pageobj.videoList = obj.videoList
			state.pageobj.showOriginalData = obj.showOriginalData
			state.pageobj.tagarrid = obj.tagarrid

		},
		setkeepVideoList(state, arr){
			state.keepVideoList = arr;
		},

	}

    // actions:{
    //     setrankingfn({commit})
    // }
	
}